home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Demos / A.D. Software / OOFGraph / Application Source / temperaturetest.cpp < prev    next >
C/C++ Source or Header  |  1996-05-03  |  646b  |  40 lines

  1. #include "temperaturetest.hpp"
  2.  
  3. #ifdef OOF_SmartHeap
  4.     #include "smrtheap.hpp"
  5. #endif
  6.  
  7. void dbTemperature::Add(const char *day, const char *time, const long temp)
  8. {
  9.     newRecord();
  10.     Day = day;
  11.     Time = time;
  12.     Temp = temp;
  13.     saveRecord();
  14. }
  15.  
  16.  
  17. void dbTemperature::AddTestData()
  18. {
  19.     Add("Sun", "Day", 22); 
  20.     Add("Sun", "Night", 12);
  21.      
  22.     Add("Mon", "Day", 24); 
  23.     Add("Mon", "Night", 12); 
  24.  
  25.     Add("Tue", "Day", 24); 
  26.     Add("Tue", "Night", 10); 
  27.     
  28.     Add("Wed", "Day", 27); 
  29.     Add("Wed", "Night", 14);
  30.  
  31.     Add("Thu", "Day", 25); 
  32.     Add("Thu", "Night", 12);
  33.      
  34.     Add("Fri", "Day", 22); 
  35.     Add("Fri", "Night", 10); 
  36.  
  37.     Add("Sat", "Day", 19); 
  38.     Add("Sat", "Night", 8); 
  39. }
  40.